#include <iostream>
#include "meta/variant.hh"

using S = meta::variant<char, int, double>;

namespace
{
	void print_s(const S& s)
	{
		s.visit([](auto& x) { std::cout << x << "\n"; });
	}
}

int main()
{
	S s{'a'};
	print_s(s);
	s = 123;
	print_s(s);
}

